<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'benefit-form',
    'enableAjaxValidation' => false,
    'enableClientValidation' => true,
    'htmlOptions' => array(
        'class' => 'form-horizontal'
    ),
        ));
?>
<div class="row-fluid">
    <!--PAGE CONTENT BEGINS-->
    <div class="span12">        
        <div class="control-group">
            <label class="control-label">Title</label>
            <div class="controls">
                <?php echo $form->textField($model,'title',array('maxlength'=>"100", "size"=>"60",'placeholder' => 'Title'))?>
                <?php echo $form->error($model, 'title')?>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label">Type</label>
            <div class="controls">
                <?php echo $form->dropDownlist($model,'type', MyFunctionCustom::$benefits, array('empty' => 'Select type'))?>
                <?php echo $form->error($model, 'type')?>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label">Status</label>
            <div class="controls">
                <?php echo $form->dropDownlist($model,'disabled',MyFunctionCustom::$status);?>
                <span class="help-inline"><?php echo $form->error($model, 'status'); ?></span>
            </div>
        </div>

        <div class="clear"></div>
    </div>
    <!--PAGE CONTENT ENDS-->
        </div><!--/.row-fluid-->
    </div>
    <div class="form-actions">
        <button class="btn btn-info" type="submit">
            <i class="icon-ok bigger-110"></i>
                Submit
        </button>
    </div>
</div>        

<?php $this->endWidget(); ?>